package org.hawk.gwt.ppc.reflect.emul.java.lang.reflect;

import org.hawk.gwt.ppc.reflect.lang.ClassDelegate;
/**
 * Provides access to package-private constructors.
 * Can be accessed only from ClassDelegate. 
 * @author alex.bereznevatiy@gmail.com
 *
 */
public final class ReflectAccessor {

	public final <T> Constructor<T> createConstructor(
			Object accessor,ClassDelegate<T> cls,String signature) {
		return new Constructor<T>(accessor,cls, signature);
	}

	public final Field createField(
			Object accessor,ClassDelegate<?> cls,String signature){
		return new Field(accessor,cls,signature);
	}
	
	public final Method createMethod(
			Object accessor,ClassDelegate<?> cls,String signature){
		return new Method(accessor,cls,signature);
	}

}
